package com.songlanyun.modules.withdraw.model.dto;

import com.songlanyun.common.drive.ValueObject;
import com.songlanyun.common.enums.WithdrawConstant;
import com.songlanyun.common.validator.group.AddGroup;
import com.songlanyun.common.validator.group.UpdateGroup;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 提现列表
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-20 17:47:55
 */
@Data
public class UserWithdrawDTO implements ValueObject {

    /**
     * 提现金额不能为空
     */
    @NotNull(message = "提现金额不能为空")
    @DecimalMin(value = "0.01", message = "提现金额不能为空")
    private BigDecimal money;

    /**
     * 收款方式：
     * 0微信，
     * 1支付宝，
     * 2银行
     * 3现金支付
     * 4公益积分
     */
    @NotNull(message = "收款方式不能为空")
    private Integer paymentTerm;
    /**
     * 用户银行卡ID
     */
    private Long userBankId;

}
